#ifndef __H_PAGEBASISSETTINGS_H__
#define __H_PAGEBASISSETTINGS_H__

#include <QWidget>

#include "../DatabaseMgmt/ViewWholeStandard.h"

namespace Ui {
	class PageBasisSettings;
}

class CPageBasisSettings
	: public QWidget
{
	Q_OBJECT
public:
	CPageBasisSettings(QWidget* parent = 0, Qt::WindowFlags f = 0);
	virtual ~CPageBasisSettings();

Q_SIGNALS:
	void sigHome();
protected:
	void init();
	void initLawesList();

	void updateWholeStandardInfo();

	void initStanardTreeWidget(const QVector<ViewWholeStandard>& standards);

	void updateMouldKind();

private Q_SLOTS:

	void slotAddKind();
	void slotAddMainly();
	void slotStandardRightMenu(const QPoint& pos);
	void slotRemoveStandardTriggered(bool checked = false);
	//void slotAddMinor();

	void slotAddLaw();
	void slotModifyLaw();
	void slotRemoveLawTriggered(bool checked = false);
	void slotRemoveLawRightMenu(const QPoint& pos);
	void slotRefreshLaw();

private:

	Ui::PageBasisSettings* m_ui;

};

#endif // __H_PAGEBASISSETTINGS_H__
